package com.bothin.experiment4.service;

import com.bothin.experiment4.model.Product;
import com.bothin.experiment4.service.base.IBaseService;

import java.util.List;

/**
 * Created by bothin
 * At 2019/12/17 9:22
 * Description:
 */
public interface IProductService extends IBaseService<Product> {
    public Integer selectPriceByProductId(String productId);

    public List<Product> findByKeyword(String key);

    //加库存
    public void increaseStock(String id,Integer num);

    //减库存
    public int decreaseStock(String id,Integer num);

}
